package com.example.zjsr.domain.Admin.anchors;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.List;

/**
 * @author lvyongwei
 */
@Data
public class Anchors extends BaseRowModel {

    /**
     * 主播id
     */
    @ExcelIgnore
    private Integer anchorId;

    /**
     * 主播名称
     */
    @ExcelProperty(index = 0,value = "主播名称")
    @ColumnWidth(value = 20)
    private String anchorName;

    /**
     * 销售件数
     */
    @ExcelProperty(index = 1,value = "销售件数")
    @ColumnWidth(value = 20)
    private String saleCount;

    /**
     * 成交额
     */
    @ExcelProperty(index = 2,value = "成交额")
    @ColumnWidth(value = 20)
    private String saleroom;

    /**
     * 直播平台
     */
    @ExcelProperty(index = 3,value = "直播平台")
    @ColumnWidth(value = 20)
    private String platform;

    /**
     * 直播视频
     */
    @ExcelProperty(index = 4,value = "直播视频")
    @ColumnWidth(value = 40)
    private String liveVideo;

    /**
     * 特点集合
     */
    @ExcelIgnore
    private List<Trait> traitList;

    /**
     * 特点id集合
     */
    @ExcelIgnore
    private List<Integer> traits;


    public Anchors() {
    }

    public Anchors(String anchorName, String saleCount, String saleroom, String platform, String liveVideo) {
        this.anchorName = anchorName;
        this.saleCount = saleCount;
        this.saleroom = saleroom;
        this.platform = platform;
        this.liveVideo = liveVideo;
    }
}
